 <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        div{
            width: 200px;
            height: 200px;
            margin: 200px auto;
            background-color: green;
            transform: rotate(45deg);
            box-shadow: 30px 30px 100px red;
            animation: jump 1s linear infinite;
        }
        @keyframes jump{
            70%{
                transform:scale(.7) rotate(45deg);
            }
            100%{
                transform:scale(1.2) rotate(45deg);
            }
        }
        div:before{
            content:"";
            display: block;
            width: 200px;
            height: 200px;
            background-color: orange;
            position: relative;
            left: -100px;
            top: 0px;
            border-radius: 50%;
        }
        div:after{
            content:"";
            display: block;
            width: 200px;
            height: 200px;
            background-color:blue;
            position: relative;
            left:0px;
            top: -300px;
            border-radius: 50%;
        }
    </style>
</head>
<body>
<div></div>
</body>
</html>